package com.neusoft.homework1.retrofitservice;

import com.neusoft.homework1.beans.Dish;
import com.neusoft.homework1.beans.Result;
import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface RetrofitService {

    @GET("dishes")
    Call<List<Dish>> getDishes();

    @GET("dish")
    Call<Result> getDish(@Query("id")String id);

    @GET("dish/{id}")
    Call<Result> getDishByPathParam(@Path("id")String id);


}
